package ics.example;

import ics.nodes.VEvent;
import ics.nodes.event.*;

import java.util.Date;

public class EventCalendar extends NoEventCalendar {
    public EventCalendar() {
        super();
        String begin = "2023/2/23 12:01:01";
        String end = "2023/2/23 13:00:00";
        DTStart DTStart = new DTStart(new Date(begin));
        DTEnd DTEnd = new DTEnd(new Date(end));
        VEvent vEvent = new VEvent();
        vEvent.add(new DTStamp());
        vEvent.add(DTStart);
        vEvent.add(DTEnd);
        vEvent.add(new UId());
        vEvent.add(new Summary("测试标题12"));
        vEvent.add(new Description("今天要做的事情\n- 吃饭\n- 睡觉"));
        vEvent.add(new TZId());
        vEvent.add(new Location("三实验楼"));
        add(vEvent);
    }
}
